import http from '@/utils/http'

import {
	adviceResponse
} from './app.js';


//获取聊天记录
export function getChatRecord(data) {
	let acToken = uni.getStorageSync('userToken');
	http.config.header.Authorization = acToken;
	
	var config = http.post('/wx/chat/getChatRecord', data, {
		loadingText: false
	});
	
	return adviceResponse(config);
}

//删除聊天记录
export function deleteChatRecord(data) {
	let acToken = uni.getStorageSync('userToken');
	http.config.header.Authorization = acToken;
	
	var config = http.post('/wx/chat/deleteChatRecord', data, {
		loadingText: false
	});
	
	return adviceResponse(config);
}